package com.rran.study.designpattern.behavioral.chain.chain.spring;

import com.rran.study.designpattern.behavioral.chain.annotation.HandlerChain;
import com.rran.study.designpattern.behavioral.chain.chain.AbstractAttackChain;
import com.rran.study.designpattern.behavioral.chain.enums.ChainType;
import com.rran.study.designpattern.behavioral.chain.enums.HandleResult;
import com.rran.study.designpattern.behavioral.chain.model.ChainContext;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * @author yy
 * @Type AttackPlaceESpringChain.java
 * @Desc 进攻D点
 * @date 2020/7/20 14:12
 */
@HandlerChain(chainType = ChainType.ATTACK,
        actionName = "ATTACK_E")
@Component("attackPlaceESpringChain")
public class AttackPlaceESpringChain extends AbstractAttackPlaceSpringChain {

    @Override
    public HandleResult doHandle(ChainContext context) {
        System.out.println("ATTACK E");
        return HandleResult.COMPLETE;
    }
}
